package day3;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope("singleton")
public class Example {
public Example() {
	System.out.println("Example的构造函数被调用了");
}
public void init() {
	System.out.println("Example中的init函数被调用了");
	
}
public void service() {
	System.out.println("Example中的service函数被调用了");
}
public void destroy() {
	System.out.println("Example中的destroy函数被调用了");
}
}
